#ifndef SUB1_H
#define SUB1_H


#include <QMainWindow>

namespace Ui {
class sub;
}

class sub : public QMainWindow
{
    Q_OBJECT

public:
    explicit sub(QWidget *parent = 0);
    int a = 0;
    int b = 0;
    int sum = 0;
    int total = 0;
    int right = 0;
    int wrong = 0;
    ~sub();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void check_sum();

signals:
    void sendsignal();

private:
    Ui::sub *ui;
};

#endif // SUB1_H
